//创建一个路由，并暴露出去
//1、创建路由器
import { createRouter, createWebHistory } from "vue-router";
//引入一个一个需要呈现的组件
import Lesson1 from '@/components/lesson1/Lesson1.vue'
import Lesson2 from "@/components/lesson2/Lesson2.vue"
import Lesson3 from "@/components/lesson3/Lesson3.vue"
import Lesson4 from "@/components/lesson4/Lesson4.vue"
import Lesson5 from "@/components/lesson5/Lesson5.vue"
import Lesson6 from "@/components/lesson6/Lesson6.vue"
import Lesson7 from "@/components/lesson7/Lesson7.vue"
import Lesson8 from "@/components/lesson8/Lesson8.vue"
import Lesson10 from "@/components/lesson10/Lesson10.vue"

//2、创建路由器
const router = createRouter({
    history:createWebHistory(),//路由器的工作模式
    routes:[{
        path:'/lesson1',
        component:Lesson1
    },{
        path:'/lesson2',
        component:Lesson2
    },{
        path:'/lesson3',
        component:Lesson3
    },{
        path:'/lesson4',
        component:Lesson4
    },{
        path:'/lesson5',
        component:Lesson5
    },{
        path:'/lesson6',
        component:Lesson6
    },{
        path:'/lesson7',
        component:Lesson7
    },{
        path:'/lesson8',
        component:Lesson8
    },{
        path:'/lesson10',
        component:Lesson10
    }
    ]
})

//暴露router
export default router